<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" >
    <h:head>
        <base href="http://156.17.42.57:2780/SystemWnioskow/faces/" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="style/main.css" />
        <title>Logowanie</title>

    </h:head>
    <h:body>
        <div id="site">
            <div id="top">
                <img id="img_top" src="images/pwr.png" />

                <span id="napis_top">
                    System zamówień
                </span>
                <div id="box_info_user">
                </div>
            </div>
            <div id="content">
                <div id="column_left">
                </div>
                <div id="column_right">
                    <f:metadata>
                        <f:viewParam name="action" value="#{logBean.akcja}"/>
                        <f:event type="preRenderView" listener="#{logBean.inicjalizuj}"/>
                    </f:metadata>
                    <h:form>
                        <h:panelGroup rendered="#{not logBean.komunikat.isEmpty()}">
                            <p class="#{logBean.rodzajKomunikatu()}">
                                <h:message for="haslo" id="haslomes"/>
                                <h:outputText  value="#{logBean.komunikat}"  id="out"/>
                            </p>
                        </h:panelGroup>
                        <ul class="formularz">



                            <li>
                                <label>Login:</label>  <h:inputText value="#{logBean.login}" id="user"/>
                            </li>
                            <li>
                                <label>Hasło:</label>   <h:inputSecret label="haslo" value="#{logBean.haslo}" id="haslo"/>
                            </li>
                            <li class="button">
                                <h:commandButton value="Zaloguj" action="#{logBean.loguj()}">
                                </h:commandButton>
                            </li>
                        </ul>


                    </h:form>
                </div>
            </div>
            <div id="footer">
                <hr />
                <p>POWERED BY Greeku, Jas, Ojciec, WojtTar</p>
            </div>
        </div>

    </h:body>

</html>

